// ignore_for_file: prefer_const_literals_to_create_immutables, prefer_const_constructors

import 'package:flutter/material.dart';
import 'package:medical_pro_flutter/components/list/MyCaseList.dart';
import '../list/SearchCaseList.dart';

class SearchPage extends StatefulWidget {
  SearchPage({Key? key}) : super(key: key);

  @override
  _SearchPageState createState() => _SearchPageState();
}

class _SearchPageState extends State<SearchPage> {
  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
        length: 2,
        child: Scaffold(
          appBar: AppBar(
            automaticallyImplyLeading: false,
            title: Row(
              mainAxisAlignment: MainAxisAlignment.start,
              children: [
                Expanded(
                    child: TabBar(
                  tabs: [
                    Tab(text: '搜索'),
                    Tab(text: '我的上传'),
                  ],
                ))
              ],
            ),
          ),
          body: TabBarView(
            children: [
              SearchCaseList(),
              MyCaseList(),
            ],
          ),
        ));
  }
}
